<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 - 智慧园区</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f5f5f5;
            height: 100vh;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
        
        .ios-status-bar {
            height: 44px;
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            padding: 0 16px;
            position: relative;
            z-index: 50;
        }
        
        .ios-status-bar.dark {
            background-color: rgba(30, 30, 30, 0.9);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .ios-tab-bar {
            height: 83px; /* 包含安全区域的高度 */
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-around;
            padding-bottom: 30px; /* 安全区域 */
            z-index: 50;
        }
        
        .ios-tab-bar.dark {
            background-color: rgba(30, 30, 30, 0.9);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
        }
        
        .tab-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }
        
        .tab-label {
            font-size: 10px;
        }
        
        .glass-card {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }
        
        .glass-card.dark {
            background: rgba(30, 30, 30, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .main-content {
            height: calc(100vh - 127px); /* 状态栏 + 底部导航的高度 */
            overflow-y: auto;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
            padding-bottom: 20px;
        }
        
        .main-content::-webkit-scrollbar {
            display: none;
        }
        
        .service-grid-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .service-icon {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .service-icon.dark {
            background: linear-gradient(135deg, #0f172a, #1e293b);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .menu-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .menu-item.dark {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        /* 暗色模式样式 */
        .dark-mode .glass-card {
            background: rgba(30, 30, 30, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .dark-mode .ios-status-bar {
            background-color: rgba(30, 30, 30, 0.9);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .dark-mode .ios-tab-bar {
            background-color: rgba(30, 30, 30, 0.9);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .dark-mode .service-icon {
            background: linear-gradient(135deg, #0f172a, #1e293b);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .dark-mode .menu-item {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
    </style>
</head>
<body>
    <div id="app" class="relative h-full">
        <!-- iOS 状态栏 -->
        <div class="ios-status-bar">
            <div class="flex justify-between items-center w-full">
                <div class="text-sm font-medium text-gray-800 dark:text-gray-200">9:41</div>
                <div class="flex space-x-2">
                    <i class="fas fa-signal text-gray-800 dark:text-gray-200"></i>
                    <i class="fas fa-wifi text-gray-800 dark:text-gray-200"></i>
                    <i class="fas fa-battery-full text-gray-800 dark:text-gray-200"></i>
                </div>
            </div>
        </div>
        
        <!-- 主内容 -->
        <div class="main-content bg-gray-50 dark:bg-gray-900">
            <!-- 用户信息卡片 -->
            <div class="bg-gradient-to-r from-blue-500 to-blue-600 p-6 pb-10 relative">
                <div class="flex items-center">
                    <div class="w-20 h-20 rounded-full bg-white dark:bg-gray-800 p-1 mr-4">
                        <img src="https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=2080&auto=format&fit=crop" 
                             alt="Avatar" 
                             class="w-full h-full rounded-full object-cover">
                    </div>
                    <div class="flex-1 text-white">
                        <div class="text-xl font-bold mb-1">张先生</div>
                        <div class="flex items-center mb-1">
                            <span class="text-sm opacity-90">138****8888</span>
                            <span class="ml-2 px-2 py-0.5 bg-amber-400/20 text-amber-200 rounded-full text-xs">游客模式</span>
                        </div>
                    </div>
                    <div class="bg-white/20 rounded-full p-2">
                        <i class="fas fa-qrcode text-white text-lg"></i>
                    </div>
                </div>
            </div>
            
            <!-- 游客提示条（如果是游客模式） -->
            <div class="mx-4 -mt-6 px-4 py-3 bg-amber-50 dark:bg-amber-900/30 border border-amber-200 dark:border-amber-700/50 rounded-xl flex justify-between items-center glass-card">
                <div class="text-sm text-amber-700 dark:text-amber-300">您正在使用游客模式，部分功能受限</div>
                <button class="px-3 py-1 bg-amber-500 text-white text-xs rounded-full">立即登录</button>
            </div>
            
            <!-- 我的服务 -->
            <div class="mx-4 mt-4">
                <div class="text-base font-semibold text-gray-800 dark:text-gray-200 mb-2 px-1">我的服务</div>
                <div class="glass-card p-5">
                    <div class="grid grid-cols-4 gap-4">
                        <div class="service-grid-item">
                            <div class="service-icon">
                                <i class="fas fa-building text-blue-500 dark:text-blue-400 text-xl"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">我的房源</span>
                        </div>
                        <div class="service-grid-item">
                            <div class="service-icon">
                                <i class="fas fa-car text-green-500 dark:text-green-400 text-xl"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">我的车辆</span>
                        </div>
                        <div class="service-grid-item">
                            <div class="service-icon">
                                <i class="fas fa-file-invoice text-purple-500 dark:text-purple-400 text-xl"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">我的账单</span>
                        </div>
                        <div class="service-grid-item">
                            <div class="service-icon">
                                <i class="fas fa-tools text-orange-500 dark:text-orange-400 text-xl"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">设备报修</span>
                        </div>
                        <div class="service-grid-item">
                            <div class="service-icon">
                                <i class="fas fa-user-friends text-pink-500 dark:text-pink-400 text-xl"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">访客预约</span>
                        </div>
                        <div class="service-grid-item">
                            <div class="service-icon">
                                <i class="fas fa-tint text-cyan-500 dark:text-cyan-400 text-xl"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">送水服务</span>
                        </div>
                        <div class="service-grid-item">
                            <div class="service-icon">
                                <i class="fas fa-broom text-teal-500 dark:text-teal-400 text-xl"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">保洁服务</span>
                        </div>
                        <div class="service-grid-item">
                            <div class="service-icon">
                                <i class="fas fa-id-card text-indigo-500 dark:text-indigo-400 text-xl"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">人脸录入</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 账号安全 -->
            <div class="mx-4 mt-6">
                <div class="text-base font-semibold text-gray-800 dark:text-gray-200 mb-2 px-1">账号安全</div>
                <div class="glass-card overflow-hidden">
                    <div class="menu-item">
                        <div class="flex items-center">
                            <div class="w-8 h-8 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center mr-3">
                                <i class="fas fa-user text-blue-500 dark:text-blue-400"></i>
                            </div>
                            <span class="text-gray-800 dark:text-gray-200">个人资料</span>
                        </div>
                        <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
                    </div>
                    <div class="menu-item">
                        <div class="flex items-center">
                            <div class="w-8 h-8 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center mr-3">
                                <i class="fas fa-lock text-green-500 dark:text-green-400"></i>
                            </div>
                            <span class="text-gray-800 dark:text-gray-200">修改密码</span>
                        </div>
                        <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
                    </div>
                    <div class="menu-item">
                        <div class="flex items-center">
                            <div class="w-8 h-8 rounded-full bg-amber-100 dark:bg-amber-900/30 flex items-center justify-center mr-3">
                                <i class="fas fa-comment-alt text-amber-500 dark:text-amber-400"></i>
                            </div>
                            <span class="text-gray-800 dark:text-gray-200">问题反馈</span>
                        </div>
                        <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
                    </div>
                    <div class="menu-item">
                        <div class="flex items-center">
                            <div class="w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center mr-3">
                                <i class="fas fa-info-circle text-purple-500 dark:text-purple-400"></i>
                            </div>
                            <span class="text-gray-800 dark:text-gray-200">关于我们</span>
                        </div>
                        <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
                    </div>
                </div>
            </div>
            
            <!-- 退出登录按钮 -->
            <div class="mx-4 mt-8 mb-6">
                <button class="w-full py-3 rounded-xl bg-gray-200 dark:bg-gray-800 text-gray-700 dark:text-gray-300 font-medium">
                    退出登录
                </button>
            </div>
        </div>
        
        <!-- iOS 底部导航栏 -->
        <div class="ios-tab-bar">
            <div class="tab-item text-gray-500 dark:text-gray-400">
                <i class="fas fa-home tab-icon"></i>
                <span class="tab-label">首页</span>
            </div>
            <div class="tab-item text-gray-500 dark:text-gray-400">
                <i class="fas fa-bullhorn tab-icon"></i>
                <span class="tab-label">公告</span>
            </div>
            <div class="tab-item text-blue-500 dark:text-blue-400">
                <i class="fas fa-user tab-icon"></i>
                <span class="tab-label">我的</span>
            </div>
        </div>
    </div>
    
    <script>
        // 检测系统暗色模式
        if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
            document.body.classList.add('dark-mode');
            document.querySelectorAll('.ios-status-bar, .ios-tab-bar, .glass-card, .service-icon, .menu-item').forEach(el => {
                el.classList.add('dark');
            });
        }
        
        // 监听系统暗色模式变化
        window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', e => {
            if (e.matches) {
                document.body.classList.add('dark-mode');
                document.querySelectorAll('.ios-status-bar, .ios-tab-bar, .glass-card, .service-icon, .menu-item').forEach(el => {
                    el.classList.add('dark');
                });
            } else {
                document.body.classList.remove('dark-mode');
                document.querySelectorAll('.ios-status-bar, .ios-tab-bar, .glass-card, .service-icon, .menu-item').forEach(el => {
                    el.classList.remove('dark');
                });
            }
        });
    </script>
</body>
</html> 